/*

 * Copyright (c) 2006-2021, BeiJing Leadal Technology Co.,Ltd.

 * All rights reserved.

 *

 * Project   : kms-wiki

 * Version   : 1.1.0

 * JDK Version : 1.6

 *

 * Comments

 *

 * History

 * Sr Date         ModifiedBy     Why & What is modified

 * 1. 2022/8/7  guoming      Created

 */
package com.atguigu.demo.controller;

import com.atguigu.demo.domain.User;
import com.atguigu.demo.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * 描述信息
 *
 * @author guoming
 * @date 2022/8/7 12:11
 */
@Controller
@ResponseBody
public class UserController {

    @Autowired
    private UserMapper userMapper;

    @GetMapping("/user/getAllUser")
    public List<User> getAllUser() {
        List<User> allUser = userMapper.getAllUser();
        return allUser;
    }

}
